POV-Ray : Newsgroups : povray.advanced-users : Simplified fluid dynamics : Simplified fluid dynamics Server Time
29 Jul 2024 04:30:41 EDT (-0400)
  Simplified fluid dynamics  
From: Kevin Loney
Date: 2 Dec 2002 23:05:55
Message: <3dec2da3@news.povray.org>
I'm trying to implement some really simplified fluid dynamics in my particle
system, and it's not working to well, my particles are accumulating
velocities that exceed light :-P

This is how I'm trying to do it

v1, v2 = velocities of particle 1 and 2
p1, p2 = locations of particle 1 and 2
dt = the time step

Dist = vlength(p1-p2);
v1 = v1 + Fluidity * (1-abs(vdot(v1, v2))) / (pow(Dist, 1/Fluidity)+1) * v1
* dt;

so essentially I'm taking the and trying to change the direction the
particle is moving based on how parrallel the velocity vectors are, to me
this seems like the most logical thing to do, but I might be wrong. thanks
for any help

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.